package com.woniuxy.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniuxy.entity.DTO.SortingDTO;
import com.woniuxy.mapper.SortingMapper;
import com.woniuxy.service.SortingService;
import com.woniuxy.util.PageParam;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.text.SimpleDateFormat;
import java.time.ZonedDateTime;
import java.util.Collections;
import java.util.List;
@Service
public class SortingServiceImpl implements SortingService {

    @Resource
    private SortingMapper sortingMapper;
    @Override
    public PageInfo queryAllInfo(PageParam<SortingDTO> pageParam) {
        return PageParam.executePageQuery(pageParam,p->sortingMapper.queryAllInfo(p.getParam()));
    }
}
